/*
 * ServiceDetails.java
 *
 * Created on February 6, 2007, 9:13 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package ge.info.domain;

import ge.ktools.StringUtils;
import java.util.Date; 
import java.util.List;

/**
 *
 * @author Administrator
 */
public class ServiceDetail  implements java.io.Serializable
{
    public static int CRITERIA_TEXT = 0;
    public static int CRITERIA_DATE = 1;   
    private int detailTypeID;
    private int serviceID;
    private int visibleOption = Integer.MAX_VALUE;
    private String detailType;    
    private String detailTypeEng;
    private String criteria;
    private Date dateCriteria;
    private int criteriaType;
    /** Creates a new instance of ServiceDetails */
    public ServiceDetail()
    {
    }

    public int getDetailTypeID()
    {
        return detailTypeID;
    }

    public void setDetailTypeID(int detailTypeID)
    {
        this.detailTypeID = detailTypeID;
    }

    public String getDetailType()
    {
        return detailType;
    }

    public void setDetailType(String detailType)
    {
        this.detailType = detailType;
    }

    public String getDetailTypeEng()
    {
        return detailTypeEng;
    }

    public void setDetailTypeEng(String detailTypeEng)
    {
        this.detailTypeEng = detailTypeEng;
    }

    public int getServiceID()
    {
        return serviceID;
    }

    public void setServiceID(int serviceID)
    {
        this.serviceID = serviceID;
    }

    public String getCriteria()
    {
        return criteria;
    }

    public void setCriteria(String criteria)
    {
        this.criteria = criteria;
    }

    public int getVisibleOption()
    {
        return visibleOption;
    }

    public void setVisibleOption(int visibleOption)
    {
        this.visibleOption = visibleOption;
    }

    public Date getDateCriteria()
    {
        return dateCriteria;
    }

    public void setDateCriteria(Date dateCriteria)
    {
        this.dateCriteria = dateCriteria;
    }

    public int getCriteriaType()
    {
        return criteriaType;
    }

    public void setCriteriaType(int criteriaType)
    {
        this.criteriaType = criteriaType;
    }
    public List<String> getCriteriaList()
    {
        return StringUtils.splitString(criteria);
    }
    
}
